settings: Don't special case IM modules
authorBenjamin Otte <otte@redhat.com>
Mon, 7 Jan 2019 23:39:15 +0000 (00:39 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 7 Jan 2019 23:41:12 +0000 (00:41 +0100)
The previous fixes made it unnecessary to hardcode IM modules for
different display types. The code now automatically skips system IM
modules for other displays.

gtk/gtksettings.c

index 3a6cbab86b99e86218b5566254f2ff1674fbcfcb..ad477d7cbdbc17e39bd9a042cf0fafcd58767a42 100644 (file)
@@ -1152,33 +1152,6 @@ gtk_settings_create_for_display (GdkDisplay *display)
                              "gtk-shell-shows-menubar", TRUE,
                              NULL);
   else
-#endif
-#ifdef GDK_WINDOWING_BROADWAY
-    if (GDK_IS_BROADWAY_DISPLAY (display))
-      settings = g_object_new (GTK_TYPE_SETTINGS,
-                               "gtk-im-module", "broadway",
-                               NULL);
-  else
-#endif
-#ifdef GDK_WINDOWING_WAYLAND
-    if (GDK_IS_WAYLAND_DISPLAY (display))
-      {
-        if (gdk_wayland_display_query_registry (display,
-                                                "zwp_text_input_manager_v3"))
-          {
-            settings = g_object_new (GTK_TYPE_SETTINGS,
-                                     "gtk-im-module", "wayland",
-                                     NULL);
-          }
-        else
-          {
-            /* Fallback to other IM methods if the compositor does not
-             * implement the interface(s).
-             */
-            settings = g_object_new (GTK_TYPE_SETTINGS, NULL);
-          }
-      }
-  else
 #endif
     settings = g_object_new (GTK_TYPE_SETTINGS, NULL);